﻿using BCCommon.Extensions;
using BCCommon.TMS.ManageFeeBusiness;
using BCDto.TMS.Order.Order;
using BCDto.TMS.VehicleType;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace BCDto.TMS.MallInterface
{
    /// <summary>
    /// 配送方式返回结果
    /// </summary>
    public class MallOrderResposeDto
    {

        /// <summary>
        /// 返回结果  
        /// </summary>
        public bool Result { set; get; }

        /// <summary>
        /// 返回结果描述
        /// </summary>
        public string ResultDiscription { set; get; }

        /// <summary>
        /// 开始计算运费
        /// </summary>
        [JsonIgnore]
        public bool IsBeginCalcCost { set; get; }

        /// <summary>
        /// 运输距离
        /// </summary>
        public double Distance { set; get; }

        /// <summary>
        /// 货物总体积
        /// </summary>
        public decimal GoodsTotalVolume { set; get; }

        /// <summary>
        /// 货物总重量
        /// </summary>
        public decimal GoodsTotalWeight { set; get; }



        /// <summary>
        /// 管理费业务类型
        /// </summary>
        public TMSManageFeeBusinessType TMSManageFeeBusinessType { set; get; }

        public  string TMSManageFeeBusinessTypeStr
        {
            get
            {
                return TMSManageFeeBusinessType.GetDescriptionString();
            }
        }

        /// <summary>
        /// 车辆类型
        /// </summary>
        public VehicleTypeDto vehicleTypeDto { set; get; }

        /// <summary>
        /// 订单费用清单
        /// </summary>
        public List<OrderCostChecklistDto> orderCostChecklistDtos { set; get; }
    }
}
